<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
</head>
<body>
<div th:insert="~{common/header::header1}"></div>
<div class="container">
  <div class="row">
    <div class="col-md-12">
      <form class="form-horizontal" th:action="@{/order-info/save.do}">
        <input type="hidden" name="userId" th:value="${session.loginUser.getUserId()}">
        <div th:each="item:${stockInfos}">
          <input type="hidden" name="hospitalId" th:value="${item.getHospitalId()}">
          <div class="form-group">
            <label class="col-sm-2 control-label">医院名称:</label>
            <div class="col-sm-10">
              <input type="text" name="stockNum" class="form-control" disabled th:value="${item.getHospitalName()}">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">商品名称:</label>
            <div class="col-sm-10">
              <select class="form-control" name="articleId">
                <option th:each="vaccine:${vaccineInfos}" th:value="${vaccine.getVaccineId()}" th:text="${vaccine.getVaccineName()}"></option>
              </select>
            </div>
          </div>
          <!--<div class="form-group">
            <label class="col-sm-2 control-label">库存:</label>
            <div class="col-sm-10">
              <input type="text" name="stockNum" disabled th:value="${item.getStockNum()}">
            </div>
          </div>-->
          <div class="form-group">
            <label class="col-sm-2 control-label">预约数量:</label>
            <div class="col-sm-10">
              <input type="text" name="orderNum" class="form-control" th:value="1">
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="submit" class="btn btn-default">预约</button>
            </div>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
</body>
</html>